package com.hnichr.ump.autoconfigure.api;

import com.hnichr.ump.api.ApiConfiguration;
import com.hnichr.ump.common.Constant;
import com.hnichr.ump.common.vo.ModuleVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(ApiConfiguration.class)
@Import(ApiConfiguration.class)
@Slf4j
public class ApiAutoConfiguration {

	public ApiAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Api Module Loading");

		Constant.addModule(new ModuleVO("Api","对外接口模块"));
	}
}
